﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 9/8/2009
 * Time: 9:55 AM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Drawing;
using System.Windows.Forms;
using System.ComponentModel;
using System.Data;
using System.Text;
using CrystalDecisions.Shared;
using CrystalDecisions.ReportSource;
using CrystalDecisions.CrystalReports.Engine;

namespace Buaya.Gui
{
	/// <summary>
	/// Description of ReportForm.
	/// </summary>
	public partial class ReportForm : BaseForm
	{
		public ReportForm(ReportDocument rpt, object ds)
		{
			InitializeComponent();
			if (ds != null)
			{
				rpt.SetDataSource(ds);
			}
			crystalReportViewer1.ReportSource = rpt;
			crystalReportViewer1.Zoom(1);
		}
	}
}
